package Polymorphic02;

/**
 * 狗（子类）
 *
 */
public class Dogs extends Animal {
    public Dogs(){}
    public Dogs(String name,int age,String denger){
        super(name, age, denger);
    }
    public void eat(){
        System.out.println(this.getName()+"吃骨头");
    }
    public void jump(){
        System.out.println("在家里跳");
    }
}
